import http from '@/utils/http';
import {postAjax} from '@/utils/axios';

export const restoreByIds = (params?: any) => {
    return postAjax('/bus/prepare/restore',params);
}


export const prepareVerify = (params?: any) => {
    return postAjax('/bus/prepare/prepareVerify',params);
}


export const removeByIds = (params?: any) => {
    return postAjax('/bus/prepare/remove',params);
}

//预制数据核对完成
export const prepareSuccess = (params?: any) => {
    return postAjax('/bus/prepare/prepareSuccess',params);
}

export const prepareCancelById = (params?: any) => {
    return postAjax(`/bus/prepare/prepareCancelById/${params.id}`,{});
}
export const prepareCancel = (ids?: any) => {
    return postAjax('/bus/prepare/prepareCancel',ids);
}
export const updateArea = (params?: any) => {
    return http.put('/bus/prepare/updateArea',params);
}
export const prepareUnCancel = (id?: any) => {
    return postAjax(`/bus/prepare/prepareUnCancel/${id}`,{});
}
export const cancelArea = (params?: any) => {
    return postAjax(`/bus/prepare/cancelArea/${params.id}`,{});
}
